package com.domain.dto.test;

import com.fasterxml.jackson.annotation.JsonIgnore;
import jakarta.validation.constraints.Email;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class EmployeeRoleDto {

    @NotNull(message = "用户id不能为空")
    private Integer id;
    @NotEmpty(message = "用户名不能为空")
    private String username;
    @NotEmpty(message = "用户密码不能为空")
    @JsonIgnore
    private String password;
    private String nickname;
    @Email(message = "请输入正确的邮箱")
    private String email;
    private Integer age;
    private Boolean admin;
    private Integer deptId;

    private List<Integer> array;
}
